<?php include(TPL_PATH . '/admin/inc_header.php'); ?>
<?php include(TPL_PATH . '/admin/inc_top.php'); ?>

<div class="alert alert-success">
您好 <?php p($arrCurManager['nick_name']) ?>,
<?php if ($arrCurManager['last_login']) { ?>
您上次登陆是在 <?php p($arrCurManager['last_login']) ?>,
<?php } ?>
祝您工作愉快:)
</div>

<?php if ($blnShowSys) { ?>
<form method="post" action="<?php p(HTTP_URL) ?>/index.php?m=admin">

    <?php if (!empty($strMsg)) { ?>
	<div class="alert alert-error">
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		<?php p($strMsg) ?>
	</div>
	<?php } elseif (!empty($strOk)) { ?>
	<div class="alert alert-success">
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		<?php p($strOk) ?>
	</div>
	<?php } ?>

    <table class="table table-bordered table-condensed" width="100%" cellspacing="0" cellpadding="0">
    	<tr>
    		<td colspan="6">
    			<ul class="breadcrumb" style="margin:0px;">
    				<li>系统配置</li>
    			</ul>
    		</td>
    	</tr>
    	<tr>
    		<th>KEY</th>
    		<th>说明</th>
    		<th>VALUE</th>
    		<th style="width:31px;">加密</th>
    		<th colspan="2">操作</th>
    	</tr>
    	<?php foreach ($arrSys as $i => $arrTemp) { ?>
    	<tr>
    		<td>
    			<input style="margin-bottom:0px;" type="text" disabled="disabled" class="input-small uneditable-input" value="<?php p($arrTemp['id']) ?>">
    			<input type="hidden" name="<?php p($i) ?>_id" value="<?php p($arrTemp['id']) ?>" />
			</td>
    		<td><input style="margin-bottom:0px;" type="text" name="<?php p($i) ?>_name" value="<?php p($arrTemp['name']) ?>"></td>
    		<td><input style="margin-bottom:0px;" type="text" class="input-xxlarge" name="<?php p($i) ?>_val" value="<?php p($arrTemp['val']) ?>"></td>
    		<td><input style="margin-bottom:0px;" name="<?php p($i) ?>_desed" type="checkbox" value="1"<?php $arrTemp['desed'] ? p(' checked="checked"') : p('') ?> /></td>
    		<td style="width:55px;"><input type="submit" name="<?php p($i) ?>_update" class="btn" value="修改" /></td>
    		<td style="width:55px;"><input type="submit" name="<?php p($i) ?>_delete" class="btn" value="删除" /></td>
    	</tr>
    	<?php } ?>
    	<tr>
    		<td><input style="margin-bottom:0px;" type="text" class="input-small" name="new_id"></td>
    		<td><input style="margin-bottom:0px;" type="text" name="new_name"></td>
    		<td><input style="margin-bottom:0px;" type="text" class="input-xxlarge" name="new_val"></td>
    		<td><input style="margin-bottom:0px;" name="new_desed" type="checkbox" value="1" /></td>
    		<td colspan="2">
    			<input type="submit" name="add" class="btn btn-primary" value="添加" />
    		</td>
    	</tr>
    </table>
</form>
<?php } ?>

<?php include(TPL_PATH . '/admin/inc_bottom.php'); ?>
<?php include(TPL_PATH . '/admin/inc_footer.php'); ?>